From: Stefan Monnier Date: Thu, 6 May 2004 18:41:32 +0000 (+0000) Subject: (diff-make-unified): Fix regexp. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~22684 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=01321e54973cf7568c5f7bd1f10eab4a8ba68261;p=emacs.git (diff-make-unified): Fix regexp. --- diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el index e95ac7422fe..9b00eae050d 100644 --- a/lisp/diff-mode.el +++ b/lisp/diff-mode.el @@ -976,7 +976,7 @@ a diff with \\[diff-reverse-direction]." "Turn context diffs into unified diffs if applicable." (if (save-excursion (goto-char (point-min)) - (looking-at "\\*\\*\\* ")) + (and (looking-at diff-hunk-header-re) (eq (char-after) ?*))) (let ((mod (buffer-modified-p))) (unwind-protect (diff-context->unified (point-min) (point-max))